package com.xkdx.caipiao.presistence.recharge;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

import com.xkdx.caipiao.module.network.AbsAction;

public class RechargeAction extends AbsAction {

	String uid, logintoken, platform, amount,signcode;

	public RechargeAction(String uid, String logintoken, String platform,
			String amount,String signcode) {
		this.uid = uid;
		this.logintoken = logintoken;
		this.platform = platform;
		this.amount = amount;
		this.signcode = signcode;
	}

	@Override
	public void constructRequest() {
		HashMap<String, String> map = new HashMap<String, String>();
		map.put("uid", uid);
		map.put("logintoken", logintoken);
		map.put("platform", platform);
		map.put("amount", amount);
		map.put("signcode", signcode);

		String json = constructJson(map);
		Parameter parameter = new Parameter("Recharge", "Pay", json);

		List<Parameter> list = new ArrayList<Parameter>();
		list.add(parameter);
		requestData = constructMod(list);

	}

}
